// 过滤器
import moment from 'moment'

export const formatDate = (value, str = 'YYYY-MM-DD') => {
  return moment(value).format(str)
}

export const getDay = value => {
  const day = value.split('-')[2] // 11, 02
  return day.startsWith('0') ? day.slice(1) : day
}
